package com.hdoit.ares.web.acc.modelconfig;

import com.tennetcn.common.enums.regular.MathRegularExpressions;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.RegularExpressionAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      caochengmeng
 * @email       
 * @createtime  2017年11月27日 09:04:28
 * @comment
 */
public class AccountInfoConfig extends ModelMetadataAttributeConfiguration{
    public AccountInfoConfig(){
        this.setProperty("account")
            .hasAttribute(new DisplayNameAttribute("会员号"));

        this.setProperty("accountNo")
            .hasAttribute(new DisplayNameAttribute("账户号"));

        this.setProperty("customerId")
            .hasAttribute(new DisplayNameAttribute("客户id"));
        
        this.setProperty("name")
        .hasAttribute(new DisplayNameAttribute("客户姓名"));

        this.setProperty("balance")
            .hasAttribute(new DisplayNameAttribute("余额"))
            .hasAttribute(new RegularExpressionAttribute(MathRegularExpressions.decimalTwo));

        this.setProperty("goldenBean")
            .hasAttribute(new DisplayNameAttribute("金豆"))
            .hasAttribute(new RegularExpressionAttribute(MathRegularExpressions.decimalTwo));

    }
}
